<?php
namespace app\index\controller;

use think\Controller;
use think\Db;
class Index extends Controller
{
    public function index()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        $head=Db::name('head')->select();
        $this->assign('head',$head);
        return view('index');
    }
    public function pro()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        return $this->fetch();
    }
    public function job()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        return $this->fetch();
    }
    public function contact()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        return $this->fetch();
    }
    public function news()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        return $this->fetch();
    }
    public function pro_more()
    {
        $data=Db::name('news_cate')->select();
        $this->assign('data',$data);
        return $this->fetch();
    }
}
